//
//  SGUserInfo.h
//  SGShow
//
//  Created by fanshijian on 15-3-19.
//  Copyright (c) 2015年 fanshijian. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "SGUserModel.h"

#define SG_User_Model @"user_model"
#define SG_User_Type_Model @"user_type_model"

// 实现记住密码功能
#define SG_Login_Phone @"Login_Phone"
#define SG_Login_Password @"Login_Password"

@interface SGUserInfo : NSObject

#pragma mark - 用户
// 保存登录的用户信息
+ (void)saveUserInfo:(id)model;
+ (void)saveLoginPhone:(NSString *)phone password:(NSString *)password;
+ (void)saveUserTypeInfo:(id)model;

// 获取用户信息
+ (id)getUserInfo;
+ (id)getUserTypeInfo;
+ (NSString *)getLoginPhone;
+ (NSString *)getLoginPassword;

#pragma mark - 存取token
+ (void)saveDeviceToken:(NSString *)token;
+ (NSString *)getDeviceToken;


// 是否已登录
+ (BOOL)isLogin;


@end
